package com.xinke.query.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum QueryStatus implements BaseEnum {
    INBOUND(0, "入库"), PROCESSING(1, "开启查询"),
    FINISHED(2, "已经完成"), QUERYFAIL(3, "查询失败");

    @EnumValue
    @JsonValue
    private Integer code;
    private String name;

    QueryStatus(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getName() {
        return this.name;
    }
}
